from django import forms
from content.models import PostModel


class PostEditForm(forms.ModelForm):
    catalog_id = forms.IntegerField(required=True)
    ver_code = forms.IntegerField(required=True)

    class Meta:
        model = PostModel
        fields = ['title', 'content', 'reward']
